package com.demo.repository;

import com.demo.entity.Account;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AccountRepo extends JpaRepository<Account, Integer> {

    // 创建分页查询，用来查询Customer下的所有Account
    Page<Account> findByCustomerCustomerId(Integer customerId, Pageable pageable);
}
